package userclient

import "github.com/spf13/cobra"

var savePath string
var CreateConfCmd = &cobra.Command{
	Use:     "userconf",
	GroupID: "exec",
	Short:   "生成用户端配置文件",
	Run: func(cmd *cobra.Command, args []string) {
		SaveExampleConf(savePath)
	},

	Example: "portmap_linux_amd64 userconf -p userconf.yaml",
}

func init() {
	CreateConfCmd.Flags().StringVarP(&savePath, "path", "p", "", "用户配置文件的保存路径")
}
